import request from '@/config/axios'

// 查询共享配置分页
export const getSharConfigList = async (params) => {
  return await request.get({ url: '/sharConfig/page', params})
}

//获取共享配置详情
export const getSharConfig = async (id) => {
  return await request.get({ url: '/sharConfig/' + id})
}

//新增 / 修改共享配置
export const updateSharConfig = async (data) => {
  return await request.post({ url: '/sharConfig/createOrUpdate',data:data})
}

//删除共享配置
export const deleteSharConfig = async (ids) => {
  return await request.delete({ url: '/sharConfig/delete',data:ids})
}
